package basiclanguage;

public class FinalVariable {
	public class TestClass {
		private int mytest = 0;

		public int getMytest() {
			return mytest;
		}

		public void setMytest(int mytest) {
			this.mytest = mytest;
		}
	}

	public static void main(String[] args) {
		FinalVariable finalVar = new FinalVariable();
		final TestClass testClass;
		testClass = finalVar.new TestClass();
		testClass.setMytest(5);
		// class1 = myTestClass.new TestClass(); //Error ---> final len chi?
		// gan' duoc. 1 lan` :(
		System.out.print(testClass.getMytest());
	}
}
